/**
 * @Author lzc
 * @Date 2023/6/2 10:02
 */
public class Demo2 {
    public static void main(String[] args) {
        System.out.println("CREATE TABLE base_dic ( \n" +
                               // 原子类型会自动识别为 hbase 的 RowKey. 列名随意
                               " dic_code string, \n" +
                               // 声明列族,类型必须是 Row 类型, 嵌套的字段名是 hbase 中的列.
                               " info ROW<dic_name string>, \n" +
                               " PRIMARY KEY (dic_code) NOT ENFORCED\n" +
                               ")with(\n" +
                               " 'connector' = 'hbase-2.2',\n" +
                               " 'zookeeper.quorum' = 'hadoop162,hadoop163,hadoop164', \n" +
                               " 'table-name' = 'gmall:dim_base_dic', \n" +
                               " 'lookup.async' = 'true', \n" +
                               " 'lookup.cache' = 'PARTIAL',\n" +
                               " 'lookup.partial-cache.max-rows' = '200',\n" +
                               //                            " 'lookup.partial-cache.expire-after-write' = '20 second', " +
                               " 'lookup.partial-cache.expire-after-access' = '20 second'\n" +
                               ")");
    }
}
